const {DataTypes}=require('sequelize')
const sequelize=require('../db/index')
const Register=sequelize.define(
    'registers',
    {
        phone:DataTypes.STRING,
        password:DataTypes.STRING,
        email:DataTypes.STRING,
        corporate_name:DataTypes.STRING,
        business_direction:DataTypes.STRING,
        team_size:DataTypes.STRING,
        why_use:DataTypes.STRING,
        describe:DataTypes.STRING,
        team_members:DataTypes.STRING,
    },
    {
        timestamps:false
    }
)
const ProjectList=sequelize.define(
    'projectLists',
    {
        taskname:DataTypes.STRING,
        estimateTime:DataTypes.DATE,
        trueTime:DataTypes.DATE,
        grade:DataTypes.STRING,
        state:DataTypes.STRING,
        flag:DataTypes.STRING,
        describe:DataTypes.STRING,
        pid:DataTypes.INTEGER,
    }
)
const Nowproject=sequelize.define(
    'nowprojects',
    {
        project_name:DataTypes.STRING,
        priority_level:DataTypes.STRING,
        describe:DataTypes.STRING,
        head_sculpture:DataTypes.TEXT('long'),
        start_date:DataTypes.DATE,
        end_date:DataTypes.DATE,
    },
    {
        timestamps:false
    }
)
module.exports={
    Register,
    ProjectList,
    Nowproject
}